package com.xin.jdbc_02;

import com.xin.jdbc_utils.DBUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

public class rollbackjdbcdemo {
    public static void main(String[] args) {
        Connection conn=null;
        Statement sta=null;
        PreparedStatement ps=null;
        ResultSet re=null;
        try {
            conn=DBUtil.getConnection();
            ps= conn.prepareStatement("update ib set balance=? where id=? ");

        } catch (Exception e) {

            e.printStackTrace();
        } finally {
            DBUtil.close(conn,sta,re);
        }
    }
}
